import ajax from '@/utils/request'

export function getCategoryListFn(goodsId) {
  return ajax({
    url: '/category/list',
    // method: '',


  })
}
export function getCategoryDataFn(id) {
  return ajax({
    url: '/goods/detail',
    data: {
      goodsId: id
    }
  })

}
export function commenLlistRowsFn({ goodsId, limit }) {
  return ajax({
    url: '/comment/listRows',
    data: {
      goodsId,
      limit,
    }
  })
}

export function commentTotalFn(id) {
  return ajax({
    url: '/comment/total',
    data: {
      goodsId: id
    }
  })
}